package cn.bs.busuo.front.account.dao.persist.repository;

import cn.bs.busuo.common.pojo.vo.PageData;
import cn.bs.busuo.front.account.pojo.entity.User;
import cn.bs.busuo.front.account.pojo.entity.UserRole;
import cn.bs.busuo.front.account.pojo.vo.UserStandardVO;

public interface IUserRepository {
    int ifUserExits(Long userId);
//    int deleteById(Long id);
//    int deleteById1(Long id);
    int countByUsername(String username);
    int insert(User user);
    Long selectIdByUsername(String username);
    int newUserRole(UserRole userRole);
    int updateById(User user);
    int updatePassword(User user);
    UserStandardVO getStandardById(Long id);
    PageData<UserStandardVO> list(Integer pageNum, Integer pageSize);
    String selectUserPasswordById(Long id);

}
